<?php 
/*$id = $_GET['id'];*/
$id = $_POST['msgid'];

$db = include './db.php';

array_splice($db, $id,1);

$str = var_export($db,true);

$str ="<?php return ".$str." ?>";

file_put_contents('./db.php', $str);

/*header('Location:./index.php');*/

$info = array(
	'error'=>0,
	'info' =>'删除成功'
	);

echo json_encode($info);






 ?>